﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Header.ascx.cs" Inherits="Header" %>

<table border="0" cellpadding="5" cellspacing="0" style="width: 100%;">
  <tr>
    <td style="font-size: 16pt; font-family: Arial;"><asp:HyperLink runat="server" NavigateUrl="~/index.aspx" ForeColor="Black" ID="HomeLink"><span style="color: #FF0000;">X</span>Community pre-alpha3</asp:HyperLink></td>
    <td style="font-size: 12px; text-align: right;">
      <asp:PlaceHolder runat="server" ID="LoggedView" Visible="false"><span style="padding: 0px 20px;"><asp:HyperLink runat="server" ID="Username" NavigateUrl="~/Members/Home.aspx" /></span><span style="padding: 0px 20px;"><asp:HyperLink runat="server" NavigateUrl='<%#string.Format( "~/Login.aspx?logout=+&source={0}", HttpUtility.UrlEncode( Request.Url.ToString() ) ) %>' Text="退出登陆" ID="LogoutLink" /></span> </asp:PlaceHolder>
      <asp:PlaceHolder runat="server" ID="NotLogged" Visible="false"><span style="padding: 0px 20px;"><asp:HyperLink runat="server" NavigateUrl='<%#string.Format( "~/Login.aspx?source={0}", HttpUtility.UrlEncode( Request.Url.ToString() ) ) %>' Text="登陆" ID="LoginLink" /></span><span style="padding: 0px 20px;"><asp:HyperLink runat="server" NavigateUrl="~/Register.aspx" Text="注册" ID="RegisterLink" /></span></asp:PlaceHolder>
    </td>
  </tr>
  <tr>
    <td colspan="2" style="height: 20px;"></td>
  </tr>
</table>

